<div style="background-color: rgb(51, 51, 51); padding:20px">
  <link href="__LoginCss__/style.css?v=34" rel="stylesheet">
  <div class="impowerBox">
 <div class="loginPanel normalPanel">
                <div class="title">微信登录</div>
                <div class="waiting panelContent">
                    <div class="wrp_code" style="height: 300px;"><img class="qrcode lightBorder" src="<{$qrcodeUrl}>"></div>
                    <div class="info">
                        <div class="status status_browser js_status normal" id="wx_default_tip">
                            <p>请使用微信扫描二维码关注即可登录</p>
                            <p>“<{$param['app_name']}>”</p>
                        </div>
                        <div class="status status_succ js_status normal" style="display:none" id="wx_after_scan">
                            <i class="status_icon icon38_msg succ"></i>
                            <div class="status_txt">
                                <h4>扫描成功</h4>
                                <p>正在为你保存登录信息中...</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
         </div>
    <script type="text/javascript">
        function reloadQrcodeUrl(){
            $.get("/BoxLogin/Login/wxLogin",function(data){
               var wrp_code= $(data).find(".wrp_code").html();
               $(".wrp_code").html(wrp_code);
            })
        }

        function checkLogin(){
            $.getJSON("/BoxLogin/Login/check_wxLogin",{rand_num:"<{$rand_num}>",sessionId:"<{$sessionId}>"},function(data){
                if(data.error==0){
                    $("#wx_default_tip").hide();
                    $("#wx_after_scan").show();
                    window.location.reload();
                }
            })
        }
         setInterval(reloadQrcodeUrl, 100000);//100s重新加载二维码
         setInterval(checkLogin, 1000);//1s验证一次是否登录
    </script>        
</div>
